package com.company.cloud.captcha.modules.api.service;

import com.company.cloud.common.bean.BaseClientResult;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.company.cloud.captcha.modules.api.fallback.CaptchaRemoteServiceFallbackFactory;
import com.company.cloud.captcha.modules.api.model.CaptchaVO;


@FeignClient(contextId = "captcha", name = ServiceNameConstant.user_center, fallbackFactory = CaptchaRemoteServiceFallbackFactory.class)
public interface CaptchaRemoteService {
    @PostMapping("/remote/captcha/check")
    public BaseClientResult<CaptchaVO> check(@RequestBody CaptchaVO captchaVO);
}
